setlocal tabstop=2 shiftwidth=2 sts=2
" 编译less文件并在所在文件夹内生成css文件
function LessToCss()
  let current_file = shellescape(expand('%:p'))
  let filename = shellescape(expand('%:r'))
  let command = "silent !lessc " . current_file . " ../css/" . filename .".css"
   execute command
endfunction
augroup bfless
    autocmd!
    autocmd BufWrite <buffer> :call LessToCss()
augroup end
